﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    //000000........1111011
    int n = 123;
    int tmp1 = n;
    int tmp2 = n>>1;
    //打印偶数位
    for (int i = 0;i < 32;i += 2)
    {
        printf("%d ", tmp1 & 1);
        tmp1 = tmp1 >> 2;
    }
    printf("\n");
    //打印奇数位
    for (int i = 1;i < 32;i += 2)
    {
        printf("%d ", tmp2 & 1);
        tmp2 = tmp2 >> 2;
    }
    return 0;
}